% 3D Pressure Camp - Regular Grid - Finite Volume Method
% 
% function -> ponto -> gives the point coordinates
%
% by jose augusto f. ramos (zeaugustofr@gmail.com)
% last update date 26/01/11

function [ci,cj,ck] = ponto(x,np_i,np_j)

ck = floor( (x-1)/(np_i*np_j)) +1;

ci = floor( ((x-1) - (ck-1)*(np_i*np_j)) / np_j ) +1;

cj = x - (ck-1)*(np_i*np_j) - (ci-1)*np_j;